import org.apache.log4j.Level;
import org.apache.log4j.Logger;

public class Log4JLoggingDemo {
  private static org.apache.log4j.Logger log = Logger.getLogger(Log4JLoggingDemo.class);
  
  public static void main(String[] args) {
    log.setLevel(Level.INFO);
    log.trace("Trace Message!");
    log.debug("Debug Message!");
    log.info("Info Message!");
    log.warn("Warn Message!");
    log.error("Error Message!");
    log.fatal("Fatal Message!");
  }
}
